

namespace Stee.CAP8.MessageBus.Interface.Models
{
    using System;

    /// <summary>
    /// Message class for serializing/deserializing generic message types
    /// </summary>
    public class MessageObject
    {
        /// <summary>
        /// 
        /// </summary>
        public object Value { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Type Type { get; set; }


        /// <summary>
        /// Initializes a new instance of the MessageObject class
        /// </summary>
        /// <param name="value"></param>
        /// <param name="type"></param>
        public MessageObject(object value, Type type)
        {
            this.Value = value;
            this.Type = type;
        }
    }
}
